package com.wcar.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wcar.common.entity.FrontUser;
import com.wcar.common.entity.LoginLog;
import com.wcar.common.entity.Role;
import com.wcar.common.entity.User;
import com.wcar.common.vo.Result;
import com.wcar.user.vo.UserVo;

import java.util.List;

/**
 * @program: four-wcar-idea
 * @description:
 * @author: 吴朝阳
 * @create: 2024-05-27 16:38
 **/
public interface UserService {
    Result<Page<User>> getUser(Integer currentPage, Integer pageSize, UserVo userVo);

    Result<User> addUser(User user);

    Result<User> updateUser(User user);

    Result<User> deleteUser(User user);

    Result<Integer> updateRole(Integer userId, List<Integer> roleIds);

    Result<List<Role>> selectAllRole();


    Result<Integer> addLoginLog(LoginLog user);
}
